﻿--[[
   @brief    message box(新的消息盒子框架，包括社交、社区、单机、平台等各种类型的消息)
   @author   hqzhneg
   @version  1.0
   @date     2017-02-13
--]]

msg_box_frame_desc = 
{
    module_name = "msg_box_frame",
    events = 
    {
        {
            c_event = 
            {
                {
                    id  = ierd_tgp.login_mgr.LOGIN_ON_TGP_ST_RENEWED,
                    callback = "msg_box_frame_control.on_tgp_st_renewed"
                },
                {
                    id  = ierd_tgp.game_library.SHOW_MAIN_WND,
                    callback = "msg_box_frame_control.handle_show_main_wnd"
                },
                {
                    id = ierd_tgp.users_info.USER_INFO_ON_CHANGE_SELF_INFO,
                    callback = "msg_box_frame_control.user_self_info_change"
                },
                {
                    id = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_IM_INITED,
                    callback = "msg_box_frame_control.on_im_inited"
                }
            },
            lua_event = 
            {
                {
                    id = group_event.SHOW_MESSAGE_BOX_DIALOG,
                    callback = "msg_box_frame_control.show"
                },
            },
            lua_file = "msg_box_frame\\control.lua"
        },
        {
            reg_service = 
            {
                {
                    id = "i_service_msg_box_get_unread_msg_count",
                    callback = "msg_box_frame_control.handle_get_unread_msg_count"
                },
            },
            lua_file = "msg_box_frame\\control.lua"
        }
        
    },
}

desc_mgr.add(msg_box_frame_desc)